﻿using System;
using Microsoft.Dss.Core.Attributes;
using Microsoft.Dss.Core.Transforms;

#if NET_CF20
[assembly: ServiceDeclaration(DssServiceDeclaration.Transform, SourceAssemblyKey = @"cf.simpledrive.y2008.m03, version=0.0.0.0, culture=neutral, publickeytoken=f9bb0080ad5f768e")]
#else
[assembly: ServiceDeclaration(DssServiceDeclaration.Transform, SourceAssemblyKey = @"simpledrive.y2008.m03, version=0.0.0.0, culture=neutral, publickeytoken=f9bb0080ad5f768e")]
#endif
#if !URT_MINCLR
[assembly: System.Security.SecurityTransparent]
[assembly: System.Security.AllowPartiallyTrustedCallers]
#endif

namespace Dss.Transforms.TransformSimpleDrive
{

    public class Transforms: TransformBase
    {

        public static object Transform_Robotics_SimpleDrive_Proxy_SimpleDriveState_TO_Robotics_SimpleDrive_SimpleDriveState(object transformFrom)
        {
            Robotics.SimpleDrive.SimpleDriveState target = new Robotics.SimpleDrive.SimpleDriveState();
            Robotics.SimpleDrive.Proxy.SimpleDriveState from = transformFrom as Robotics.SimpleDrive.Proxy.SimpleDriveState;
            target.CurrentAction = from.CurrentAction;
            return target;
        }


        public static object Transform_Robotics_SimpleDrive_SimpleDriveState_TO_Robotics_SimpleDrive_Proxy_SimpleDriveState(object transformFrom)
        {
            Robotics.SimpleDrive.Proxy.SimpleDriveState target = new Robotics.SimpleDrive.Proxy.SimpleDriveState();
            Robotics.SimpleDrive.SimpleDriveState from = transformFrom as Robotics.SimpleDrive.SimpleDriveState;
            target.CurrentAction = from.CurrentAction;
            return target;
        }

        static Transforms()
        {
            Register();
        }
        public static void Register()
        {
            AddProxyTransform(typeof(Robotics.SimpleDrive.Proxy.SimpleDriveState), Transform_Robotics_SimpleDrive_Proxy_SimpleDriveState_TO_Robotics_SimpleDrive_SimpleDriveState);
            AddSourceTransform(typeof(Robotics.SimpleDrive.SimpleDriveState), Transform_Robotics_SimpleDrive_SimpleDriveState_TO_Robotics_SimpleDrive_Proxy_SimpleDriveState);
        }
    }
}

